package com.augmentum.login.exception;

import java.util.HashMap;
import java.util.Map;

public class ParamException extends Exception {

    private static final long serialVersionUID = -3965590393253135800L;
    Map<String, String> exceptionFields = new HashMap<String, String>();

    public Map<String, String> getExceptionFields() {
        return exceptionFields;
    }

    public void setExceptionFields(Map<String, String> exceptionFields) {
        this.exceptionFields = exceptionFields;
    }

    public void addExceptionField(String key, String value) {
        exceptionFields.put(key, value);
    }

    public boolean hasExceptionFiled() {
        return !exceptionFields.isEmpty();
    }
}
